package my.mybatis.common.response.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import my.mybatis.common.exception.ErrorCode;

import java.io.Serializable;
import java.util.List;

/**
 * @author:wangbin
 * @date:15/12/21 下午2:24
 * <p/>
 * Description:
 */
@ApiModel(value = "Result", description = "请求结果基类")
public class Result implements Serializable {
    private static final long serialVersionUID = -4696898674758059398L;
    @ApiModelProperty(value = "结果代码")
    private String statusCode = ErrorCode.SUCCESS.getCode();
    @ApiModelProperty(value = "错误描述")
    private String errMsg;
    @ApiModelProperty(value = "错误列表")
    private List<String> errorList;

	public List<String> getErrorList() {
		return errorList;
	}

	public void setErrorList(List<String> errorList) {
		this.errorList = errorList;
	}

	public String getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}
}
